﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Recycle.aspx.cs" Inherits="ZLDC.Estate.UM.Recycle" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>回收站</title>
    <link href="../css/main.css" rel="stylesheet" type="text/css" />
    <link href="../js/jquery/style/jquery.hiAlerts.css" rel="stylesheet" type="text/css" />

    <script src="../js/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
  
        <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#a8c7ce">
            <tr>
                <td style="text-align:  center; background-color: #FFFFFF; cursor: pointer;" valign="middle"
                    colspan="5">
                      <a href="javascript:showDialog('1')"><strong>客源</strong></a>&nbsp; <a href="javascript:showDialog('2')"><strong>盘源</strong></a>&nbsp; <a href="javascript:showDialog('4')"><strong>楼盘</strong></a>&nbsp; <a href="javascript:showDialog('3')"><strong>栋阁</strong></a>&nbsp;
                </td>
            </tr>
            <tr>
               <td style="text-align:  left; background-color: #FFFFFF; cursor: pointer;" valign="middle"
                    colspan="5">
                    <a href="javascript:showTranTmpDialog();"><strong>1.已删部门盘客管理</strong></a>
                </td>
                
            </tr>
            <tr>
             <td style="text-align:  left; background-color: #FFFFFF; cursor: pointer;" valign="middle"
                    colspan="5">
                    <a href="javascript:showMergeUserDialog();"><strong>2.合并账号盘客</strong></a>
                </td>
            </tr>
            <tr>
             <td style="text-align:  left; background-color: #FFFFFF; cursor: pointer;" valign="middle"
                    colspan="5">
                    <a href=""><strong>3.合并楼盘,栋阁</strong></a>
             </td>
            </tr>
              <tr>
             <td style="text-align:  right; background-color: #FFFFFF; cursor: pointer;" valign="middle"
                    colspan="5">
                    <a href="javascript:DeleteWeekDaysCustomer();"><strong>删除回收站中超过一周的客源</strong></a>
             </td>
            </tr>
        </table>
        <div id="divList">
        </div>
        <div id="divPage">
        </div>

    </form>
     <script src="../js/jquery/jquery.hiAlerts-min.js" type="text/javascript"></script>

    <script src="../js/LexunJS.js" type="text/javascript"></script>

    <script src="../js/jShowDiv.js" type="text/javascript"></script>
     <script type="text/javascript">
         // 弹出窗口,
         function showDialog(id) {
             var path = "RecycleList.aspx?id=" + id;
             var parameter = "回收站";
             var style = "dialogWidth:800px; dialogHeight:620px; status:0;scroll:1; help:0; resizable:1;Scrollbars=yes,Toolbar=no,Location=no,Direction=no,Resizeable=no";
             window.showModalDialog(path, parameter, style);
         }
         function showTranTmpDialog() {
             var path = "TranTmp.aspx";
             var parameter = "";
             var style = "dialogWidth:800px; dialogHeight:620px; status:0;scroll:1; help:0; resizable:1;Scrollbars=yes,Toolbar=no,Location=no,Direction=no,Resizeable=no";
             window.showModalDialog(path, parameter, style);
         }
         function showMergeUserDialog() {
             var path = "MergeUser.aspx";
             var parameter = "";
             var style = "dialogWidth:800px; dialogHeight:620px; status:0;scroll:1; help:0; resizable:1;Scrollbars=yes,Toolbar=no,Location=no,Direction=no,Resizeable=no";
             window.showModalDialog(path, parameter, style);
         }
       
          
         function DeleteWeekDaysCustomer() {
             hiConfirm("您确定要删除客源，请谨慎操作！", "确认框", function(result) {
                 if (result) {
                     // ajax删除                   
                     $.ajax({
                         type: 'POST',
                         url: '../Handler/HandlerCustomer.ashx',
                         data: 'act=DeleteWeekDaysCustomer',
                         timeout: '10000',
                         error: function() {
                             alert("删除失败！");
                         },
                         success: function(outmsg) {
                             alert(outmsg);

                         }
                     });
                 }
             });
         }
         
         
    </script>
</body>
</html>
